projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37ea917
)
* make-dist: Replace grep with sed when determining $version.
author
Glenn Morris
<rgm@gnu.org>
Tue, 12 Oct 2010 08:05:28 +0000
(
01:05
-0700)
committer
Glenn Morris
<rgm@gnu.org>
Tue, 12 Oct 2010 08:05:28 +0000
(
01:05
-0700)
make-dist
patch
|
blob
|
history
diff --git
a/make-dist
b/make-dist
index c713f8e1574f81bcf3173f72f605796438a97f3a..2a51b91241e5917a739b0a3fcebb6c79f82c5a87 100755
(executable)
--- a/
make-dist
+++ b/
make-dist
@@
-153,8
+153,7
@@
then
fi
### Find out which version of Emacs this is.
-version=`grep 'char emacs_version' src/emacs.c \
- | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
+version=`sed -n '/char emacs_version/ s/^[^"]*"\([^"]*\)".*$/\1/p' src/emacs.c`
if [ ! "${version}" ]; then
echo "${progname}: can't find current Emacs version in \`./src/emacs.c'" >&2
exit 1